#define _CRT_SECURE_NO_WARNINGS

#include<stdio.h>
#include<string.h>
int main()
{
	int n = 0;
	/* while (getchar() != '\n')
		 n++;*/
	char ch;
	for (ch = getchar(); ch != '\n'; n++);
	printf("%d", n);
	return 0;
}